package com.neotech.neo4j.resources;

import java.util.HashMap;

public class Item{
	
	protected long id;
	protected HashMap<String, String> properties;
	
	public Item(long id) {
		this.id = id;
		properties = new HashMap<String, String>();
	}
	
	public long getId() {
		return id;
	}

	public void setProperties(HashMap<String, String> properties){
		this.properties = properties;
	}
	
	public HashMap<String, String> getProperties() {
		return properties;
	}

	public void addProperty(String key, String value){
		properties.put(key, value);
	}
	
	public String getProperty(String key){
		return properties.get(key);
	}

	@Override
	public String toString() {
		return "Item [id=" + id + ", properties=" + properties + "]";
	}

}
